{include 'admin/layout/header_list'}
<link rel="stylesheet" href="__ADMIN_STATIC__/css/plugin.css?random={extendSetting('random')}">
<div class="ltcms_container">
    <div class="container_title">
        <form action="{LTCMS_ROUTE_PREFIX}/module" method="get" class="ltcms_search">
            导航菜单：
            <select name="isMenu" style="width:150px;margin-left:5px;margin-right:10px;">
                <option value="">请选择</option>
                <option value="1" {if isset($request['isMenu']) && $request['isMenu']=="1"}selected{/if} >是</option>
                <option value="0" {if isset($request['isMenu']) && $request['isMenu']=="0"}selected{/if} >否</option>
            </select>
            <input name="module" type="text" placeholder="请输入类型" {if isset($request['module'])} value="{$request['module']}" {/if}  >
            <input name="name" type="text" placeholder="请输入名称" {if isset($request['name'])} value="{$request['name']}" {/if}  >
            <button type="submit" class="btn3">搜索</button>
        </form>
    </div>
    <section class="ltcms_content">
        <div class="ltcms_list">
            <table class="list_table">
                <colgroup>
                    <col width="100px" >
                    <col width="100px" >
                    <col width="200px" >
                    <col width="80px" >
                    <col width="80px" >
                    <col width="80px" >
                    <col width="80px" >
                    <col width="170px" >
                    <col >
                </colgroup>
                <tr class="tr1" >
                    <td class="th"><input id="selectAll" type="checkbox"></td>
                    <td class="th">序号</td>
                    <td class="th">名称</td>
                    <td class="th">类型</td>
                    <td class="th">排序</td>
                    <td class="th">菜单</td>
                    <td class="th">状态</td>
                    <td class="th">安装时间</td>
                    <td class="th">操作</td>
                </tr>
                {if $moduleListData}
                {foreach  $moduleListData["data"] $key $val}
                <tr class="tr">
                    <td><input class="checkbox" name="check_id" type="checkbox" value="{$val['id']}"></td>
                    <td>{$val['id']}</td>
                    <td>{$val['name']}</td>
                    <td>{$val['module']}</td>
                    <td>{$val['sort']}</td>
                    <td>{$val['isMenuFormat']}</td>
                    <td>{$val['disabledFormat']}</td>
                    <td>{$val['installTimeFormat']}</td>
                    <td>
                        <div class="btn4">
                            <a href="{LTCMS_ROUTE_PREFIX}/module/edit?&id={$val['id']}">
                                <i title="编辑" class="btn4-img iconfont icon-bianji"></i>
                            </a>
                            <i onClick="runApi(this)" title="删除" data-close="4" data-submit-url="{LTCMS_ROUTE_PREFIX}/module?id={$val['id']}" data-method="delete" alt="" class="btn4-img del iconfont icon-delete"></i>
                        </div>
                    </td>
                </tr>
                {/foreach}
                {/if}
            </table>
        </div>
    </section>
    <div class="list-bottom">
        <div class="bottom-left">
            <a href="{LTCMS_ROUTE_PREFIX}/module/create"><button class="btn2 trash">添加</button></a>
            <button class="btn2 trash" onclick="runBatchApi(this)" data-close="3" data-submit-url="{LTCMS_ROUTE_PREFIX}/module/supplyRoute" data-method="post" >补充路由</button>
            <button class="btn2 del1" onclick="dataMoreDel(this)" data-close="3" data-submit-url="{LTCMS_ROUTE_PREFIX}/module" data-method="delete" >批量删除</button>
        </div>
        <div class="pages">
            {if $moduleListData}
            {php  echo app("P_page")->getPageBarV2($moduleListData);}
            {/if}
        </div>
    </div>
</div>
<script src="__ADMIN_STATIC__/js/list.js?random={extendSetting('random')}"></script>
{include 'admin/layout/footer'}